// Java Document

function show_sub(id){
	var tohide=document.getElementById('top_banner');
	if(tohide){
		tohide.style.visibility='hidden'	
	}
	document.getElementById("menu"+id).style.display = 'inline';
}
function hide(id){
	if(visible[id]==false) {
		document.getElementById("menu"+id).style.display = 'none';
		var tohide=document.getElementById('top_banner');
		if(tohide){
			tohide.style.visibility='visible'	
		}
	}
	

}
function hide_sub(id){
	setTimeout("hide('"+id+"')",150);
}
function ontd(td){
	td.style.backgroundColor='#B6B7C0'
}
function offtd(td){
	td.style.backgroundColor=''
}
var visible = new Array();

function tdcolor(td, color){
	td.style.backgroundColor=color
}

function open_wind(link,w,h,imia) {
	var win = "width="+w+",height="+h+",menubar=no,location=no,resizable=no,scrollbars=no";
	newWin = window.open(link,imia,win);
	newWin.focus();
}

function open_wind2(link,w,h,imia) {
	var win = "width="+w+",height="+h+",menubar=no,location=no,resizable=no,scrollbars=yes";
	newWin = window.open(link,imia,win);
	newWin.focus();
}
function change_foto(file,img,url,alink){
	document.getElementById(img).src=file;
	document.getElementById(alink).href=url;
}

function wopen(url,w,h){  
eval('opened=window.open("","none","top=100, left=100, width="+w+", height="+h+", resizable=0","replace=yes")');  
opened.document.open();  
opened.document.write('<body leftmargin=0 topmargin=0><img src="'+url+'"></body>');  
opened.document.close();  
}  

